3f4a94b9e2f3059ed23adc6e7573c8e1ca074938,src/com/trollworks/gcs/widgets/outline/MultiCell.java,MultiCell,getPreferredHeight,#Row#Column#,167

Before Change


	@Override
	public int getPreferredHeight(Row row, Column column) {
		ListRow theRow = (ListRow) row;
		Font font = getPrimaryFont();
		int height = TextDrawing.getPreferredSize(font, wrap(theRow, column, getPrimaryText(theRow), font)).height;
		String notes = getSecondaryText(theRow);
		if (notes.trim().length() > 0) {
			font = getSecondaryFont();
			height += TextDrawing.getPreferredSize(font, wrap(theRow, column, notes, font)).height;
		}
		return height;

After Change



	@Override
	public int getPreferredHeight(Outline outline, Row row, Column column) {
		Scale scale = Scale.get(outline);
		ListRow theRow = (ListRow) row;
		Font font = scale.scale(getPrimaryFont());
		int height = TextDrawing.getPreferredSize(font, wrap(scale, theRow, column, getPrimaryText(theRow), font)).height;
		String notes = getSecondaryText(theRow);
		if (notes.trim().length() > 0) {
			font = scale.scale(getSecondaryFont());
			height += TextDrawing.getPreferredSize(font, wrap(scale, theRow, column, notes, font)).height;
		}
		return height;